package cn.yuanqiao.archive.detection.mapper;

import cn.yuanqiao.archive.detection.domain.DetectionItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 配置项Mapper接口
 * 
 * @author xy
 * @date 2023-08-08
 */
@Mapper
public interface DetectionItemMapper 
{
    /**
     * 查询配置项
     * 
     * @param id 配置项主键
     * @return 配置项
     */
    public DetectionItem selectDetectionItemById(Long id);

    /**
     * 查询配置项列表
     * 
     * @param detectionItem 配置项
     * @return 配置项集合
     */
    public List<DetectionItem> selectDetectionItemList(DetectionItem detectionItem);

    /**
     * 新增配置项
     * 
     * @param detectionItem 配置项
     * @return 结果
     */
    public int insertDetectionItem(DetectionItem detectionItem);

    /**
     * 修改配置项
     * 
     * @param detectionItem 配置项
     * @return 结果
     */
    public int updateDetectionItem(DetectionItem detectionItem);

    /**
     * 删除配置项
     * 
     * @param id 配置项主键
     * @return 结果
     */
    public int deleteDetectionItemById(Long id);

    /**
     * 批量删除配置项
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDetectionItemByIds(Long[] ids);

    void deleteDetectionItemByPid(@Param("list") List<Long> objIdList, @Param("tableName") String tableName);

    int insertBatchDetectionItem(@Param("list") List<DetectionItem> list, @Param("tableName")String tableName);
}
